<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="menu.xsl" />
<xsl:include href="footer.xsl" />
<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" method="xml" encoding="iso-8859-1" />
  <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  <head>
  <title>Manager Framework Manager</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

  	<link rel="stylesheet" href="public/manager/css/manager.css" type="text/css" media="screen" />
  	<script type="text/javascript" src="public/manager/js/menu.js"></script>

  </head>
  <body>
  
    <div id="header">
    	<img id="logo" src="public/manager/images/bando.png" alt="Fw-BofF" />  
    </div>
    <div id="date">
      <xsl:value-of select=".//site/date" />
    </div>
    
    
    
    <!--<ul id="menu">
    	<li><a href="index.php?action=homeManager">Home</a></li>
    	<li><a href="index.php?action=homeUsers">Users</a></li>
    	<li><a class="active" href="index.php?action=homeMonitoring">Monitoring</a></li>
    	<li><a href="index.php?action=homeScaffolding">Scaffolding</a></li>
    	<li><a  href="index.php?action=homeUpdates">Updates</a></li>
    </ul> -->
    <xsl:call-template name="displayMenu">
      <xsl:with-param name="selectedMenu" select="string('admin')"/>
    </xsl:call-template>
    
    
    <div id="PageLeft">    
      <div id="content" style=" float:left;">
      
      
        <h1 id="pageName" style="width:600px;margin-top:20px;">   Logs of the database   </h1> 
        <xsl:variable name="isDatabaseLogs" select="count(//site/logsDatabase/entry)"/>
        <xsl:if test="$isDatabaseLogs=0"> 
          <div style="margin:10px 0 0 20px;width:570px;padding:5px;border:1px dotted #AAAAAA;background-color:#ECF3E1;">
          <span class="important">No logs available.</span><br/><br/>
          To enable logs of the database access fill  <b>$configLogDataBaseFile</b> and <b>$configDataBaseExplainAll</b> in the configuration.
          </div>
        </xsl:if>
        <xsl:for-each select=".//logsDatabase">
        <div style="margin:10px 0 0 20px;width:570px;padding:5px;border:1px dotted #AAAAAA;background-color:#ECF3E1;">
            <table style="padding:2px;spacing:2px;border:0px;width:100%">
            <tr style="background-color:#C2C9C9;font-weight:bold;">
      		    <td>Name</td>
      		    <td>Date</td>
      		    <td style="text-align:center">Actions</td>
      		  </tr>
        <xsl:for-each select="entry">
        <tr>
        <td>
      		 <xsl:value-of select="name" />
      		  </td>
      		  <td>
      		  <xsl:value-of select="date" />
      		  </td>
      		  <td><center>
      		  <a href="{name}">
      		  <img src="public/manager/images/install.png"  title="download {name}" alt="download now" />
            </a></center>
      		</td>
      		</tr>
       </xsl:for-each>
       </table>
       </div>
       </xsl:for-each>
       
       <h1 id="pageName" style="width:600px;margin-top:20px">   Framework logs   </h1> 
       <xsl:variable name="isOolimeLogs" select="count(//site/logsOolime/entry)"/>
        <xsl:if test="$isOolimeLogs=0"> 
          <div style="margin:10px 0 0 20px;width:570px;padding:5px;border:1px dotted #AAAAAA;background-color:#ECF3E1;">
          <span class="important">No logs available.</span><br/><br/>
          You may use syslog or you don't have logs reported. To enable logs in file, set
          <b>$configLogType  = "file";</b> and fill <b>$configLogFileName</b>.
          </div>
        </xsl:if>
        
        <xsl:for-each select=".//logsOolime">
        <div style="margin:10px 0 0 20px;width:570px;padding:5px;border:1px dotted #AAAAAA;background-color:#ECF3E1;">
            <table style="padding:2px;spacing:2px;border:0px;width:100%">
            <tr style="background-color:#C2C9C9;font-weight:bold;">
      		    <td>Name</td>
      		    <td>Date</td>
      		    <td style="text-align:center">Actions</td>
      		  </tr>
        <xsl:for-each select="entry">
        <tr>
        <td>
      		 <xsl:value-of select="name" />
      		  </td>
      		  <td>
      		  <xsl:value-of select="date" />
      		  </td>
      		  <td><center>
      		  <a href="{name}">
      		  <img src="public/manager/images/install.png"  title="download {name}" alt="download now" />
            </a></center>
      		</td>
      		</tr>
       </xsl:for-each>
       </table>
       </div>
       </xsl:for-each>
       
      </div>
      
    </div>
    
    <xsl:call-template name="displayFooter" />
  </body>
</html>
 </xsl:template>
 </xsl:stylesheet>
